package com.yb.livewykt.bean

import com.yb.livewykt.R
import java.util.*

enum class FilterEnum(private val filterName: String, private val iconId: Int, private val nameId: Int) {


    origin(BeautificationParam.ORIGIN, R.drawable.demo_icon_cancel, R.string.origin),

    ziran_1(BeautificationParam.ZIRAN_1, R.drawable.demo_icon_natural_1, R.string.ziran_1),
    ziran_2(BeautificationParam.ZIRAN_2, R.drawable.demo_icon_natural_2, R.string.ziran_2),
    ziran_3(BeautificationParam.ZIRAN_3, R.drawable.demo_icon_natural_3, R.string.ziran_3),
    ziran_4(BeautificationParam.ZIRAN_4, R.drawable.demo_icon_natural_4, R.string.ziran_4),
    ziran_5(BeautificationParam.ZIRAN_5, R.drawable.demo_icon_natural_5, R.string.ziran_5),
    ziran_6(BeautificationParam.ZIRAN_6, R.drawable.demo_icon_natural_6, R.string.ziran_6),
    ziran_7(BeautificationParam.ZIRAN_7, R.drawable.demo_icon_natural_7, R.string.ziran_7),
    ziran_8(BeautificationParam.ZIRAN_8, R.drawable.demo_icon_natural_8, R.string.ziran_8),

    zhiganhui_1(
        BeautificationParam.ZHIGANHUI_1,
        R.drawable.demo_icon_texture_gray1,
        R.string.zhiganhui_1
    ),
    zhiganhui_2(
        BeautificationParam.ZHIGANHUI_2,
        R.drawable.demo_icon_texture_gray2,
        R.string.zhiganhui_2
    ),
    zhiganhui_3(
        BeautificationParam.ZHIGANHUI_3,
        R.drawable.demo_icon_texture_gray3,
        R.string.zhiganhui_3
    ),
    zhiganhui_4(
        BeautificationParam.ZHIGANHUI_4,
        R.drawable.demo_icon_texture_gray4,
        R.string.zhiganhui_4
    ),
    zhiganhui_5(
        BeautificationParam.ZHIGANHUI_5,
        R.drawable.demo_icon_texture_gray5,
        R.string.zhiganhui_5
    ),
    zhiganhui_6(
        BeautificationParam.ZHIGANHUI_6,
        R.drawable.demo_icon_texture_gray6,
        R.string.zhiganhui_6
    ),
    zhiganhui_7(
        BeautificationParam.ZHIGANHUI_7,
        R.drawable.demo_icon_texture_gray7,
        R.string.zhiganhui_7
    ),
    zhiganhui_8(
        BeautificationParam.ZHIGANHUI_8,
        R.drawable.demo_icon_texture_gray8,
        R.string.zhiganhui_8
    ),

    mitao_1(BeautificationParam.MITAO_1, R.drawable.demo_icon_peach1, R.string.mitao_1),
    mitao_2(BeautificationParam.MITAO_2, R.drawable.demo_icon_peach2, R.string.mitao_2),
    mitao_3(BeautificationParam.MITAO_3, R.drawable.demo_icon_peach3, R.string.mitao_3),
    mitao_4(BeautificationParam.MITAO_4, R.drawable.demo_icon_peach4, R.string.mitao_4),
    mitao_5(BeautificationParam.MITAO_5, R.drawable.demo_icon_peach5, R.string.mitao_5),
    mitao_6(BeautificationParam.MITAO_6, R.drawable.demo_icon_peach6, R.string.mitao_6),
    mitao_7(BeautificationParam.MITAO_7, R.drawable.demo_icon_peach7, R.string.mitao_7),
    mitao_8(BeautificationParam.MITAO_8, R.drawable.demo_icon_peach8, R.string.mitao_8),

    bailiang_1(BeautificationParam.BAILIANG_1, R.drawable.demo_icon_bailiang1, R.string.bailiang_1),
    bailiang_2(BeautificationParam.BAILIANG_2, R.drawable.demo_icon_bailiang2, R.string.bailiang_2),
    bailiang_3(BeautificationParam.BAILIANG_3, R.drawable.demo_icon_bailiang3, R.string.bailiang_3),
    bailiang_4(BeautificationParam.BAILIANG_4, R.drawable.demo_icon_bailiang4, R.string.bailiang_4),
    bailiang_5(BeautificationParam.BAILIANG_5, R.drawable.demo_icon_bailiang5, R.string.bailiang_5),
    bailiang_6(BeautificationParam.BAILIANG_6, R.drawable.demo_icon_bailiang6, R.string.bailiang_6),
    bailiang_7(BeautificationParam.BAILIANG_7, R.drawable.demo_icon_bailiang7, R.string.bailiang_7),

    fennen_1(BeautificationParam.FENNEN_1, R.drawable.demo_icon_fennen1, R.string.fennen_1),
    fennen_2(BeautificationParam.FENNEN_2, R.drawable.demo_icon_fennen2, R.string.fennen_2),
    fennen_3(BeautificationParam.FENNEN_3, R.drawable.demo_icon_fennen3, R.string.fennen_3),
    //    fennen_4(BeautificationParam.FENNEN_4, R.drawable.demo_icon_fennen4, R.string.fennen_4),
    fennen_5(BeautificationParam.FENNEN_5, R.drawable.demo_icon_fennen5, R.string.fennen_5),
    fennen_6(BeautificationParam.FENNEN_6, R.drawable.demo_icon_fennen6, R.string.fennen_6),
    fennen_7(BeautificationParam.FENNEN_7, R.drawable.demo_icon_fennen7, R.string.fennen_7),
    fennen_8(BeautificationParam.FENNEN_8, R.drawable.demo_icon_fennen8, R.string.fennen_8),

    lengsediao_1(
        BeautificationParam.LENGSEDIAO_1,
        R.drawable.demo_icon_lengsediao1,
        R.string.lengsediao_1
    ),
    lengsediao_2(
        BeautificationParam.LENGSEDIAO_2,
        R.drawable.demo_icon_lengsediao2,
        R.string.lengsediao_2
    ),
    lengsediao_3(
        BeautificationParam.LENGSEDIAO_3,
        R.drawable.demo_icon_lengsediao3,
        R.string.lengsediao_3
    ),
    lengsediao_4(
        BeautificationParam.LENGSEDIAO_4,
        R.drawable.demo_icon_lengsediao4,
        R.string.lengsediao_4
    ),
    lengsediao_7(
        BeautificationParam.LENGSEDIAO_7,
        R.drawable.demo_icon_lengsediao7,
        R.string.lengsediao_7
    ),
    lengsediao_8(
        BeautificationParam.LENGSEDIAO_8,
        R.drawable.demo_icon_lengsediao8,
        R.string.lengsediao_8
    ),
    lengsediao_11(
        BeautificationParam.LENGSEDIAO_11,
        R.drawable.demo_icon_lengsediao11,
        R.string.lengsediao_11
    ),

    nuansediao_1(
        BeautificationParam.NUANSEDIAO_1,
        R.drawable.demo_icon_nuansediao1,
        R.string.nuansediao_1
    ),
    nuansediao_2(
        BeautificationParam.NUANSEDIAO_2,
        R.drawable.demo_icon_nuansediao2,
        R.string.nuansediao_2
    ),

    gexing_1(BeautificationParam.GEXING_1, R.drawable.demo_icon_gexing1, R.string.gexing_1),
    gexing_2(BeautificationParam.GEXING_2, R.drawable.demo_icon_gexing2, R.string.gexing_2),
    gexing_3(BeautificationParam.GEXING_3, R.drawable.demo_icon_gexing3, R.string.gexing_3),
    gexing_4(BeautificationParam.GEXING_4, R.drawable.demo_icon_gexing4, R.string.gexing_4),
    gexing_5(BeautificationParam.GEXING_5, R.drawable.demo_icon_gexing5, R.string.gexing_5),
    gexing_7(BeautificationParam.GEXING_7, R.drawable.demo_icon_gexing7, R.string.gexing_7),
    gexing_10(BeautificationParam.GEXING_10, R.drawable.demo_icon_gexing10, R.string.gexing_10),
    gexing_11(BeautificationParam.GEXING_11, R.drawable.demo_icon_gexing11, R.string.gexing_11),

    xiaoqingxin_1(
        BeautificationParam.XIAOQINGXIN_1,
        R.drawable.demo_icon_xiaoqingxin1,
        R.string.xiaoqingxin_1
    ),
    xiaoqingxin_3(
        BeautificationParam.XIAOQINGXIN_3,
        R.drawable.demo_icon_xiaoqingxin3,
        R.string.xiaoqingxin_3
    ),
    xiaoqingxin_4(
        BeautificationParam.XIAOQINGXIN_4,
        R.drawable.demo_icon_xiaoqingxin4,
        R.string.xiaoqingxin_4
    ),

    xiaoqingxin_6(
        BeautificationParam.XIAOQINGXIN_6,
        R.drawable.demo_icon_xiaoqingxin6,
        R.string.xiaoqingxin_6
    ),

    heibai_1(BeautificationParam.HEIBAI_1, R.drawable.demo_icon_heibai1, R.string.heibai_1),
    heibai_2(BeautificationParam.HEIBAI_2, R.drawable.demo_icon_heibai2, R.string.heibai_2),
    heibai_3(BeautificationParam.HEIBAI_3, R.drawable.demo_icon_heibai3, R.string.heibai_3),
    heibai_4(BeautificationParam.HEIBAI_4, R.drawable.demo_icon_heibai4, R.string.heibai_4);


    companion object{
        open fun getFiltersByFilterType(): List<Filter> {
            val values = values()
            val filters = ArrayList<Filter>(values.size)
            for (value in values) {
                filters.add(value.create())
            }
            return filters
        }
    }



    open fun create(): Filter {
        return Filter(filterName, iconId, nameId,false)
    }

}